package com.project.model;

import com.project.dto.TPeopleDto;

public class TPeopleUserService implements ITPeopleUser {
	private static TPeopleUserService tPeopleUserService;
	private ITPeopleUser manager;
	private TPeopleUserService(){
		manager = new TPeopleUserManager();
	}
	
	public static TPeopleUserService getInstance(){
		if(tPeopleUserService==null){
			tPeopleUserService = new TPeopleUserService();
		}
		return tPeopleUserService;
	}

	@Override
	public int addTpeopleUser(TPeopleDto tDto) {
		return manager.addTpeopleUser(tDto);
	}

	@Override
	public int updateTpeopleUser(TPeopleDto tDto) {
		return manager.updateTpeopleUser(tDto);
	}

}
